

<html>
	<head>
	<title>Adnmin-Previleges</title>
	
		<script type="text/javascript">
		
		function updateNotifications121(id){
			
			
			 //document.getElementById("updateServicesDiv").style.display="";
			
			 var serviceNumber=document.getElementById("serviceNumberForUpdation").value; 
			 var subjectMatter=document.getElementById("SubjectMatter121").value;
			 var notificationsNumber=document.getElementById("vvv").value;
			 var dateofNotification=document.getElementById("DateofNotification121").value;
			 var effectiveDate=document.getElementById("Effectivedate121").value;
			 
	            
	            var xmlhttp;
				if (window.XMLHttpRequest)
				  {
						// code for IE7+, Firefox, Chrome, Opera, Safari
				   		xmlhttp=new XMLHttpRequest();
				  }else
				  {
						// code for IE6, IE5
				  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
				  }
				xmlhttp.onreadystatechange=function()
				  {
				  if (xmlhttp.readyState==4 && xmlhttp.status==200)
				     {
				    	document.getElementById("yyyDiv").innerHTML=xmlhttp.responseText;
				    }
				  }
			
				//alert("naresh");
				xmlhttp.open("POST","circular.do?Services="+serviceNumber+"&subjectMatter="+subjectMatter+"&notificationsNumber="+notificationsNumber+"&dateofNotification="+dateofNotification+"&effectiveDate="+effectiveDate+"&methodid=updateNotifications121",true);
			xmlhttp.send();
		}
		
			function onUpdateNotification(id){
				
				 if('-1' == document.getElementById("Services").value){
					   alert("please select service.");
				   }
				   else if('' == document.getElementById("NotificationNumber").value){
					   alert("please Enter NotificationNumber.");
				   }
				   else if('' == document.getElementById("SubjectMatter").value){
					   alert("please Write SubjectMatter.");
				   }
				
				if (window.XMLHttpRequest)
				  {
					// code for IE7+, Firefox, Chrome, Opera, Safari
				   xmlhttp=new XMLHttpRequest();
				  }
				else
				  {
					// code for IE6, IE5
				  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
				  }
				xmlhttp.onreadystatechange=function()
				  {
				  if (xmlhttp.readyState==4 && xmlhttp.status==200)
				     {
				    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
				    }
				  }
				
								
				var Services =document.getElementById("Services123");
				var NotificationNumber = document.getElementById("NotificationNumber");
				var DateofNotification = document.getElementById("DateofNotification");
				var SubjectMatter = document.getElementById("SubjectMatter");
				var Effectivedate = document.getElementById("Effectivedate");
				
				
				xmlhttp.open("POST","circular.do?Services="+Services.value+"&NotificationNumber="+NotificationNumber.value+"&DateofNotification="+DateofNotification.value+"&SubjectMatter="+SubjectMatter.value+"&Effectivedate="+Effectivedate.value+"&methodid="+id,true);
				xmlhttp.send();
				
				}
			
			function gettingNotificationDetailsbasedOnNotificationNumber (select) {
				 
				 //alert("yyy");
				 
				 var selectedNotificationNumber=select.options[select.selectedIndex];
				 var selectedServiceNumber=document.getElementById("serviceNumberForUpdation").value; 
		            
				 //alert(selectedCircularNumber.value);
				 //alert(selectedServiceNumber);
				 
		            var xmlhttp;
					if (window.XMLHttpRequest)
					  {
							// code for IE7+, Firefox, Chrome, Opera, Safari
					   		xmlhttp=new XMLHttpRequest();
					  }else
					  {
							// code for IE6, IE5
					  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
					  }
					xmlhttp.onreadystatechange=function()
					  {
					  if (xmlhttp.readyState==4 && xmlhttp.status==200)
					     {
					    	document.getElementById("gettingNotificationDetailsbasedOnNotificationNumberDiv").innerHTML=xmlhttp.responseText;
					    }
					  }
				
					//alert('naresh');
				xmlhttp.open("POST","gettingNotificationsNumebrsbasedOnServiceNumber.do?selectedNotificationNumber="+selectedNotificationNumber.value+"&methodName=gettingNotificationDetailsBasedOnNotificationsNumber&selectedServiceNumber="+selectedServiceNumber,true);
				xmlhttp.send();
		        }
			
			function updateNotifications123(id){
				 document.getElementById("updateServicesDiv").style.display="";
			}
			
			function OnSelectionChange (select) {
	            var selectedOption = select.options[select.selectedIndex];
	            
	            var xmlhttp;
	           
				if (window.XMLHttpRequest)
				  {
						// code for IE7+, Firefox, Chrome, Opera, Safari
				   		xmlhttp=new XMLHttpRequest();
				  }else
				  {
						// code for IE6, IE5
				  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
				  }
				xmlhttp.onreadystatechange=function()
				  {
				  if (xmlhttp.readyState==4 && xmlhttp.status==200)
				     {
				    	document.getElementById("updateNotificationsNmuberDiv").innerHTML=xmlhttp.responseText;
				    }
				  }
			
			xmlhttp.open("POST","gettingNotificationsNumebrsbasedOnServiceNumber.do?selectedServiceOption="+selectedOption.value+"&methodName=gettingNotificationsNumebrsbasedOnServiceNumber",true);
			xmlhttp.send();
	        }
			
			function OnSelectionNotificationsNumberDateAndServicenumberChange (select) {
				 
				 var selectedCircularNumber=document.getElementById("vvv").value;
				 var dateOfCircular=document.getElementById("dateOfCircular121").value;
				 var selectedServiceNumber=document.getElementById("serviceNumberForUpdation").value; 
		            
		            var xmlhttp;
					if (window.XMLHttpRequest)
					  {
							// code for IE7+, Firefox, Chrome, Opera, Safari
					   		xmlhttp=new XMLHttpRequest();
					  }else
					  {
							// code for IE6, IE5
					  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
					  }
					xmlhttp.onreadystatechange=function()
					  {
					  if (xmlhttp.readyState==4 && xmlhttp.status==200)
					     {
						  document.getElementById("xxxDiv").innerHTML=xmlhttp.responseText;
					    }
					  }
				
				xmlhttp.open("POST","gettingNotificationDetailsBasedOnNotificationsNumber.do?selectedCircularNumber="+selectedCircularNumber+"&methodName=circularNumberDetailsBasedOnServicenumberAndCircularDate&selectedServiceNumber="+selectedServiceNumber+"&dateOfCircular="+dateOfCircular,true);
				xmlhttp.send();
		        }
		</script>
	<script>
	
</script>

	
	</head>
	
	 	
	<table>
		<tr>
			<td width="300px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h1><font color="red">Adnmin-Previleges</font></h1></td>
		</tr>
	</table>
	<div id="myDiv" ></div>
	<table>
	<tr>
			<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" "width = "250px" ><h2>Services</h2></td>
			<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" width = "300px" ><select  name="Services" id="Services123">
			<option name="default" id="defaule" value="-1">-----------------------Select One--------------------</option>
			<option name="1" id="1" value="1" title="Service1">FDI</option>
			<option name="2" id="" value="" title="Service2">Transfer Tool</option>
			<option name="3" id="2" value="2" title="Service3">Immovable In India</option>
			<option name="4" id="11" value="11" title="Service4">Foreign Exchange</option>
			<option name="5" id="8" value="8" title="Service5">Immovable Outside India</option>
			<option name="6" id="7" value="7" title="Service6">ODI Main</option>
			<option name="7" id="3" value="3" title="Service7">Branch Lo Po In India</option>
			<option name="8" id="9" value="9" title="Service8">ODI Individual</option>
			</select>
			</td>
		</tr>
		
		<tr>
			<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2>Notification Number</h2></td>
			<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><input type="text"  size="50px" name="NotificationNumber" id="NotificationNumber"></td>
		</tr>
		<tr>
			<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2>Date of Notification</h2></td>
			<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px">  <input type="text" class="datepicker"  name="DateofNotification"  id="DateofNotification" size="50px"  /> </td>
		</tr>
		<tr>
			<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2>Subject Matter</h2></td>
			<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><textarea name="SubjectMatter" rows="5" cols="50" id="SubjectMatter" ></textarea></td>
		</tr>
		<tr>
			<td width="250px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"><h2>Effective date</h2></td>
			<td width="350px" style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"> <input type="text" class="datepicker"   name="Effectivedate"  id="Effectivedate" size="50px"   /></td>
		</tr>
		
		<tr>
		 	<td width="250px" style="border-radius:05px;"><input type="button" size="50px" name="update" id="updaten" value="Add" onClick="onUpdateNotification('Notifications')"/></td>
		 	<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px"  width = "75%" ><input type="button" name="updateCircular" id="updateCircular" value="update" onClick="updateNotifications123()"/></td>	
		</tr>
		
		<tr><td colspan="2">
		<div id="updateServicesDiv" style="display:none;width:100%">
			<table width="100%">
				<tr>
					<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" width = "25%" ><h2>Services</h2></td>
					<td style="padding-left:3px;padding-right:3px;padding-bottom:3px;padding-top:3px" width = "75%" >
						 <select id="serviceNumberForUpdation" onChange="OnSelectionChange(this)">
					        <option value="-1">-----------------------Select One--------------------</option>
							<option value="1" >Service1</option>
							<option value="2" >Service2</option>
							<option value="3" >Service3</option>
							<option value="4" >Service4</option>
							<option value="5" >Service5</option>
							<option value="6" >Service6</option>
							<option value="7" >Service7</option>
							<option value="8" >Service8</option>
					    </select>
					</td>
	 			</tr>
			</table>
		</div>
		</td>
		</tr>
		
		<tr><td colspan="2"><div id="updateNotificationsNmuberDiv" style="width:100%"  /></td></tr>
		
		<tr><td colspan="2"><div id="gettingNotificationDetailsbasedOnNotificationNumberDiv" style="width:100%"  /></td></tr>
		
		<tr><td colspan="2"  >
			<div id="yyyDiv" style="width:100%" ></div></td>
	 	</tr>
		
		</table>
		</form>
	</body>
</html>